From: Matthias Clasen Date: Sat, 8 Oct 2022 02:00:23 +0000 (-0400) Subject: paperdialog: Drop an unused function X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~116^2~1^2~193^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ac87c72797afe6b810b43d53962da3b74999884c;p=gtk4.git paperdialog: Drop an unused function This gets rid of a GtkListStore use. --- diff --git a/gtk/gtkcustompaperunixdialog.c b/gtk/gtkcustompaperunixdialog.c index 3ed3949ecf..35d379484a 100644 --- a/gtk/gtkcustompaperunixdialog.c +++ b/gtk/gtkcustompaperunixdialog.c @@ -197,29 +197,6 @@ _gtk_load_custom_papers (void) return g_list_reverse (result); } -void -_gtk_print_load_custom_papers (GtkListStore *store) -{ - GtkTreeIter iter; - GList *papers, *p; - GtkPageSetup *page_setup; - - gtk_list_store_clear (store); - - papers = _gtk_load_custom_papers (); - for (p = papers; p; p = p->next) - { - page_setup = p->data; - gtk_list_store_append (store, &iter); - gtk_list_store_set (store, &iter, - 0, page_setup, - -1); - g_object_unref (page_setup); - } - - g_list_free (papers); -} - void gtk_print_load_custom_papers (GListStore *store) { diff --git a/gtk/gtkcustompaperunixdialog.h b/gtk/gtkcustompaperunixdialog.h index 8f96bf91d2..b123ee9392 100644 --- a/gtk/gtkcustompaperunixdialog.h +++ b/gtk/gtkcustompaperunixdialog.h @@ -33,7 +33,6 @@ GType gtk_custom_paper_unix_dialog_get_type (void) G_GNUC_ GtkWidget * _gtk_custom_paper_unix_dialog_new (GtkWindow *parent, const char *title); GtkUnit _gtk_print_get_default_user_units (void); -void _gtk_print_load_custom_papers (GtkListStore *store); void gtk_print_load_custom_papers (GListStore *store); GList * _gtk_load_custom_papers (void);